#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int a, b, count = 0;
    scanf("%d", &a);
    int arr[a];
    for (int i = 0; i < a; i++)
    {
        scanf("%d", &arr[i]);
    }
    scanf("%d", &b);
    for (int i = 0; i < a; i++)
    {
        if (arr[i] == b)
        {
            count++;
        }
    }
    printf("%d", count);
    return 0;
}